// @File:           logger_c.h
// @ProjectName:    gee_logger_c
// @Description:    ${description}
// @Author:         wujehy
// @Email:          wujehy@qq.com
// @Time:           2021-03-28 23:40

#ifndef GEE_LOGGER_C_LOGGER_C_H
#define GEE_LOGGER_C_LOGGER_C_H


#ifdef __cplusplus
extern "C" {
#endif
//  安全密钥
#define  SECURE_KEY 12345678
// 应用id
#define  CLIENT_APP_ID 1
// 包名
#define  CLIENT_PACKAGE_NAME "c_client_packet_name"

void init_logger_service(const char *host, int port);

void deinit_logger_service();

void upload_logger_info_to_logger_server(
        unsigned long long secure_key,
        int logger_level,
        unsigned long long client_time,
        unsigned long long app_id,
        unsigned long long mod_type,
        unsigned long long sub_type,
        const char *package_name,
        const char *class_name,
        const char *func_name,
        int line_number,
        const char *msg
);

void upload_logger_info_to_logger_server_tesgt_debug(
        unsigned long long mod_type,
        unsigned long long sub_type,
        const char *class_name,
        const char *func_name,
        int line_number,
        const char *msg
);
// 日志宏 由自己封装即可
#define GTestDebug(MOD_TYPE, SUB_TYPE, MSG_BODY) upload_logger_info_to_logger_server_tesgt_debug( MOD_TYPE , SUB_TYPE , "TEST_CLASS_NAME" ,  __FUNCTION__  ,__LINE__ , MSG_BODY )

#ifdef __cplusplus
};
#endif
#endif //GEE_LOGGER_C_LOGGER_C_H
